﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DAL.Migrations
{
    public partial class inidbL : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "DepKeshi",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Department = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    photo = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Establish = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Createdtime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    Updatedtime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDelete = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_DepKeshi", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "MedicaYongyao",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    MedicalName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    DepartId = table.Column<int>(type: "int", nullable: false),
                    Medicatime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    patientName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    patientNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    State = table.Column<int>(type: "int", nullable: false),
                    Dispensingdoctors = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Createdtime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    Updatedtime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDelete = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_MedicaYongyao", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "DepKeshi");

            migrationBuilder.DropTable(
                name: "MedicaYongyao");
        }
    }
}
